package com.dp.mallchat.common.user.service;

import com.dp.mallchat.common.user.domain.user.entity.UserBackpack;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dp.mallchat.common.user.domain.user.enums.IdempotenceEnum;

/**
 * <p>
 * 用户背包表 服务类
 * </p>
 *
 * @author <a href="https://gitee.com/baiDP">adu</a>
 * @since 2024-06-02
 */
public interface UserBackpackService extends IService<UserBackpack> {


    /**
     * 向用户背包发放物品
     * @param uId 用户id
     * @param itemId 物品id
     * @param idempotenceEnum 幂等类型
     * @param businessId 业务id
     */
    void acquireItem(Long uId, Long itemId, IdempotenceEnum idempotenceEnum, String businessId);

}
